<!--算机2201宋瑞之 2212180115-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>健康体检管理系统 - 查询体检信息</title>
  <!-- 引入 Element Plus 的 CSS -->
  <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft YaHei", sans-serif;
    }

    body {
      background-color: #f5f7fa;
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    /* 左侧导航栏样式 */
    .navigation-sidebar {
      width: 200px;
      background-color: #2f3b4b;
      color: #fff;
      min-height: 100vh;
    }

    .navigation-header {
      padding: 20px;
      font-size: 18px;
      background-color: #242e3b;
    }

    .navigation-list {
      list-style: none;
    }

    .navigation-list li {
      padding: 12px 20px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .navigation-list li:hover {
      background-color: #3a4756;
    }

    .navigation-list li.active {
      background-color: #1f2730;
    }

    .navigation-list a {
      color: #fff;
      text-decoration: none;
    }

    /* 右侧内容区域样式 */
    .content-main {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }

    .info-card {
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
      margin-bottom: 20px;
    }

    .info-card-header {
      padding: 15px 20px;
      font-size: 16px;
      font-weight: bold;
      border-bottom: 1px solid #eee;
    }

    .info-card-to {
      padding: 15px 20px;
      font-size: 12px;
      font-weight: normal;
      border-bottom: 0px solid #eee;
    }

    .form-section {
      padding: 20px;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      width: calc(33.333% - 20px);
    }

    .form-group.full-width {
      width: 100%;
    }

    .form-group label {
      margin-bottom: 5px;
      font-size: 14px;
      color: #666;
    }

    .form-group input {
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .form-group input[disabled] {
      background-color: #f5f5f5;
      cursor: not-allowed;
    }

    .range-normal {
      font-size: 12px;
      color: #999;
      margin-top: 4px;
    }

    .status-label {
      display: inline-block;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 12px;
      margin-left: 5px;
    }

    .status-label.danger {
      background-color: #f56c6c;
      color: #fff;
    }

    .accordion-section {
      border: 1px solid #eee;
      border-radius: 4px;
      margin-bottom: 20px;
    }

    .accordion-item {
      border-bottom: 1px solid #eee;
    }

    .accordion-item:last-child {
      border-bottom: none;
    }

    .accordion-header {
      padding: 15px 20px;
      cursor: pointer;
      background-color: #fafafa;
      font-weight: bold;
    }

    .accordion-content {
      padding: 20px;
      display: none;
    }

    .accordion-content.show {
      display: block;
    }
    
    /* 新增的搜索区域样式 */
    .search-area {
      background-color: #fff;
      padding: 20px;
      border-radius: 4px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
      margin-bottom: 20px;
    }
    
    .search-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .search-row input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid #dcdfe6;
      border-radius: 4px;
    }
  </style>
</head>

<body>
  <!-- 左侧导航栏 -->
  <aside class="navigation-sidebar">
    <div class="navigation-header">健康体检管理系统</div>
    <ul class="navigation-list">
      <li>主页</li>
      <li>预约体检</li>
      <li>预约记录</li>
      <li class="active">查询体检信息</li>
    </ul>
  </aside>

  <!-- 右侧内容区域 -->
  <div class="content-main" id="app">
    <!-- 查询区域 -->
    <div class="search-area">
      <div class="info-card-to">体检信息录入</div>
      <div class="info-card-header">体检信息查询</div>
      <div class="search-row">
        <label for="search-order">订单编号：</label>
        <input id="search-order" placeholder="输入体检编号" v-model="orderId">
        <!-- 使用 Element Plus 的按钮 -->
        <el-button type="info" plain @click="searchCustomer">查询</el-button>
      </div>
    </div>

    <!-- 客户信息 -->
    <div class="info-card">
      <div class="info-card-header">客户基本信息</div>
      <div class="form-section">
        <div class="form-group">
          <label>订单编号</label>
          <input type="text" value="202310253212565" disabled>
        </div>
        <div class="form-group">
          <label>手机号码</label>
          <input type="text" value="213100000000" disabled>
        </div>
        <div class="form-group">
          <label>姓名</label>
          <input type="text" value="张一山" disabled>
        </div>
        <div class="form-group">
          <label>性别</label>
          <input type="text" value="女" disabled>
        </div>
        <div class="form-group">
          <label>套餐类型</label>
          <input type="text" value="23东家秋寒已增女士套餐D" disabled>
        </div>
        <div class="form-group">
          <label>体检日期</label>
          <input type="text" value="2023-10-12" disabled>
        </div>
      </div>
    </div>

    <!-- 检查录入 -->
    <div class="info-card">
      <div class="info-card-header">检查录入</div>
      <!-- 基础检查 -->
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('basic')">基础检查</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'basic'}">
          <div class="form-section">
            <div class="form-group">
              <label>身高</label>
              <input type="text" placeholder="请输入身高">
              <div class="range-normal">正常范围值：-</div>
            </div>
            <div class="form-group">
              <label>体重</label>
              <input type="text" placeholder="请输入体重">
              <div class="range-normal">正常范围值：-</div>
            </div>
            <div class="form-group">
              <label>体重指数</label>
              <input type="text" value="22.9" disabled>
              <div class="range-normal">正常范围值：-</div>
              <span class="status-label danger">异常</span>
            </div>
            <div class="form-group">
              <label>脉搏</label>
              <input type="text" placeholder="请输入脉搏">
              <div class="range-normal">正常范围值：-</div>
            </div>
            <div class="form-group">
              <label>收缩压</label>
              <input type="text" placeholder="请输入收缩压">
              <div class="range-normal">正常范围值：-</div>
            </div>
            <div class="form-group">
              <label>舒张压</label>
              <input type="text" placeholder="请输入舒张压">
              <div class="range-normal">正常范围值：-</div>
            </div>
            <div class="form-group full-width">
              <label>科室小结</label>
              <input type="text" placeholder="科室小结：超重">
            </div>
            <div class="form-group">
              <label>录入医师</label>
              <input type="text" placeholder="请输入录入医师">
            </div>
            <div class="form-group">
              <label>责任医师</label>
              <input type="text" placeholder="请输入责任医师">
            </div>
          </div>
        </div>
      </div>
      <!-- 视力与辨色力 -->
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('vision')">视力与辨色力</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'vision'}">
          <div class="form-section">
            <div class="form-group">
              <label>色觉检查</label>
              <input type="text" placeholder="输入正确数据">
            </div>
            <div class="form-group">
              <label>右眼裸眼视力</label>
              <input type="text" placeholder="请输入右眼裸眼视力">
              <div class="range-normal">正常范围值：5.0-5.2</div>
            </div>
            <div class="form-group">
              <label>左眼裸眼视力</label>
              <input type="text" placeholder="请输入左眼裸眼视力">
              <div class="range-normal">正常范围值：5.0-5.2</div>
            </div>
            <div class="form-group">
              <label>右眼矫正视力</label>
              <input type="text" placeholder="请输入右眼矫正视力">
              <div class="range-normal">正常范围值：-0</div>
            </div>
            <div class="form-group">
              <label>左眼矫正视力</label>
              <input type="text" placeholder="请输入左眼矫正视力">
              <div class="range-normal">正常范围值：-0</div>
            </div>
            <div class="form-group full-width">
              <label>科室小结</label>
              <input type="text" placeholder="科室小结：双眼屈光不正">
            </div>
            <div class="form-group">
              <label>录入医师</label>
              <input type="text" placeholder="请输入录入医师姓名">
            </div>
            <div class="form-group">
              <label>责任医师</label>
              <input type="text" placeholder="请输入责任医师姓名">
            </div>
          </div>
        </div>
      </div>
      <!-- 其他检查项 -->
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('blood')">血常规</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'blood'}">
          <p>血常规检查内容...</p>
        </div>
      </div>
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('liver')">肝功能</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'liver'}">
          <p>肝功能检查内容...</p>
        </div>
      </div>
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('kidney')">肾功能</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'kidney'}">
          <p>肾功能检查内容...</p>
        </div>
      </div>
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('fat')">血脂</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'fat'}">
          <p>血脂检查内容...</p>
        </div>
      </div>
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('urine')">尿常规</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'urine'}">
          <p>尿常规检查内容...</p>
        </div>
      </div>
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('carotid')">颈动脉超声</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'carotid'}">
          <p>颈动脉超声检查内容...</p>
        </div>
      </div>
      <div class="accordion-section">
        <div class="accordion-header" @click="toggleAccordion('head')">头部CT</div>
        <div class="accordion-content" :class="{show: activeAccordion === 'head'}">
          <p>头部CT检查内容...</p>
        </div>
      </div>
    </div>
  </div>

  <!-- 引入 Vue 3 和 Element Plus -->
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <script src="https://unpkg.com/element-plus/dist/index.full.js"></script>
  <script>
    // 初始化 Vue 应用
    const { createApp } = Vue;
    const app = createApp({
      data() {
        return {
          orderId: '',
          activeAccordion: 'basic'
        };
      },
      methods: {
        searchCustomer() {
          if (!this.orderId) {
            this.$message({
              message: '请输入订单编号',
              type: 'warning',
              duration: 2000
            });
            return;
          }
          this.$message({
            message: `查询订单: ${this.orderId}`,
            type: 'success',
            duration: 2000
          });
          // 这里可以添加实际的查询逻辑
        },
        toggleAccordion(id) {
          this.activeAccordion = this.activeAccordion === id ? null : id;
        }
      }
    });
    
    // 使用 Element Plus
    app.use(ElementPlus);
    
    // 挂载 Vue 应用
    app.mount('#app');
  </script>
</body>
</html>